#ifndef __CK_COMMAND_H__
#define __CK_COMMAND_H__

#include "ckObject.h"
#include "zCore.h"

namespace ck
{
	class Connection;

	class ZCORE_API Command :	public ckObject
	{
		friend class Connection;
	public:
		Command(Connection* pConnection, ADODB::_ConnectionPtr pConnectionPtr);
		virtual ~Command();

	public:
		ADODB::_RecordsetPtr	ExecuteQuery(const char* szSQL);

	protected:
		Connection*	m_pConnection;

		ADODB::_ConnectionPtr	m_pConnectionPtr;
		ADODB::_CommandPtr		m_pCommandPtr;
		ADODB::_RecordsetPtr	m_pRecordsetPtr;
	};
}


#endif //__CK_COMMAND_H__
